module.exports = (sequelize, DataTypes) => {
    const goodsModel = sequelize.define('goods', {
        goods_id:{
            type:DataTypes.INTEGER,
            autoIncrement: true,
            primaryKey: true,
            defaultValue:0
        },
        order_id: {
            type: DataTypes.INTEGER,
            allowNull: false
        },
        goods_type: {
            type: DataTypes.STRING,
            allowNull: false,
        },
        weight: {
            type: DataTypes.INTEGER,
            allowNull: false,
            defaultValue:0
        },
        remark: {
            type: DataTypes.STRING,
            allowNull: true,
        }},{
        tableName: 'goods_info',
        timestamps:false
    })


    return goodsModel
}
